import request from '@/utils/request'
/**
 *获取账单列表
 * @param {*} params
 * @returns
 */
export const getPropertyListAPI = (params) => {
  return request({
    url: '/park/propertyfee',
    params
  })
}
export const addPropertyAPI = (data) => {
  return request({
    url: '/park/propertyfee',
    method: 'post',
    data
  })
}
/**
 * 所有公司
 * @returns
 */
export const checkAllCompanyAPI = () => {
  return request({
    url: '/park/all/enterprise'
  })
}
/**
 * 所有楼
 */
export const checkAllFloorAPI = () => {
  return request({
    url: '/park/all/building'
  })
}
/**
 *账单详情
 * @param {*} id
 * @returns
 */
export const checkDetailAPI = (id) => {
  return request({
    url: `/park/propertyfee/${id}`
  })
}

export const delBillAPI = (id) => {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'delete'
  })
}
export const payAllAPI = (data) => {
  return request({
    url: `/park/propertyfee/pre/payment`,
    method: 'post',
    data
  })
}
